package com.huatai.bi.controller;

import com.huatai.bi.service.FilterConditionService;
import com.huatai.common.api.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@Api(value = "过滤条件",tags = "过滤条件")
@RequestMapping("/filterCondition")
public class FilterConditionController {

    @Autowired
    FilterConditionService service;

    @GetMapping("/get")
    @ApiOperation(value = "获取过滤条件")
    public R<Map> list(){
        return R.data(service.get());
    }
}
